package com.flower.service.impl;

import com.flower.dao.AdminMapper;
import com.flower.pojo.Store;
import com.flower.pojo.User;
import com.flower.service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class AdminServiceImpl implements AdminService {

    @Autowired
    private AdminMapper adminMapper;


    @Override
    public List<User> queryUserAll(Map<String, Object> map) {
        return adminMapper.queryUserAll(map);
    }

    @Override
    public List<Store> queryStoreAll(Map<String, Object> map) {
        return adminMapper.queryStoreAll(map);
    }

    @Override
    public List<Store> queryStoreAll1() {
        return adminMapper.queryStoreAll1();
    }


    @Override
    public int updateUserState(User user) {
        return adminMapper.updateUserState(user);
    }

    @Override
    public int updateStoreState(Store store) {
        return adminMapper.updateStoreState(store);
    }


}
